package com.coldchain.order.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.coldchain.order.entity.BizReceiverGoods;
import com.coldchain.order.mapper.BizReceiverGoodsMapper;
import com.coldchain.order.service.IBizReceiverGoodsService;
import com.fangliai.core.base.service.impl.BaseServiceImpl;

/**
 * <p>
 * 收货人商品信息 服务实现类
 * </p>
 *
 * @author fangliai
 * @since 2018-09-12
 */
@Service
public class BizReceiverGoodsServiceImpl extends BaseServiceImpl<BizReceiverGoodsMapper, BizReceiverGoods> implements IBizReceiverGoodsService {
	@Override
	public List<BizReceiverGoods> getByBizId(String bizid) {
		QueryWrapper<BizReceiverGoods> ew = new QueryWrapper<BizReceiverGoods>();
		ew.eq("biz_id", bizid);
		return super.list(ew);
	}

	@Override
	public List<BizReceiverGoods> getByReceiverid(String receiverid) {
		QueryWrapper<BizReceiverGoods> ew = new QueryWrapper<BizReceiverGoods>();
		ew.eq("receiverid", receiverid);
		return super.list(ew);
	}
	
}
